package com.jintoufs.service.baseinfo;


import com.jintoufs.dao.QueryFilters;
import com.jintoufs.domain.baseinfo.Ticker;
import com.jintoufs.domain.ticker.TickerVO;

import java.util.List;
import java.util.Map;

public interface TickerService {
    void deleteByPrimaryKey(Long id);

    void insert(Ticker record);

    Ticker selectByPrimaryKey(Long id);

    void updateByPrimaryKey(Ticker record);

    List<Map<String, Object>> queryByParams(Map<String, Object> params);

    List<Map<String, Object>> queryBySite(String coinCode,String siteName);

    List<Map<String, Object>> getByFilter(QueryFilters filters);

    List<Map<String ,Object>> getLastestPrice(Map<String, Object> params);

    /***
     * 更新币安的币种对
     *
     */
    void getBinanceSymbols();

    /**
     * 价格查询
     * @param params
     * @return
     */
    List<TickerVO> findByTicker(Map<String, Object> params);

    void deleteByParams(Map<String, Object> params);
}